Item
Description
A script used to represent an item that can be picked up, dropped, and used.
Item |
- - body : Rigidbody2D
- - colour : Color
- - deltaX : float
- - deltaY : float
- - delay : float
- - dissappears : bool
- - dropped : bool
- - playerInRange : PlayerInterface
- - potion : Potion
- + speed : float
- # sRenderer : SpriteRenderer
- - t : float
- - thrown : bool
- - travelIndex : int
- - travelling : bool
- - travelPath : Vector3[]
- + type : ItemType
- + xOverlay : GameObject
- - _xoverlay : GameObject
- Dropped : bool (Property with public getter and no setter)
- Grabbable : bool (Property with private getter and no setter)
- Thrown : bool (Property with public getter and no setter)
|
- + BurnItem() : void
- + Drop() : void
- # FixedSceneUpdate() : override void
- + OnTriggerEnter2D(collision : Collider2D) : void
- + OnTriggerExit2D(collision : Collider2D) : void
- + ReactivateCollider(playerCollider : Collider2D) : void
- + ResetOpacity() : void
- # SceneUpdate() : override void
- - SetOverlay() : void
- - SetRegularSprite() : void
- # Start() : void
- + Throw(dx : float, dy : float, playerCollider : Collider2D) : virtual void
- + Travel(path : Vector3[]) : void
- - WaitToActivate(playerCollider : Collider2D) : IEnumerator
|